package com.wanmait.happyheating.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.sql.Timestamp;

/**
* Created by Mybatis Generator 2021/05/10
*/
@Data
@TableName(value = "chargeback")
public class Chargeback implements Serializable {
     @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 退单原因id
     */
    @TableField(value = "chargeback_reason_id")
    private Integer chargebackReasonId;
    @TableField(exist = false)
    private ChargebackReason chargebackReason;

    /**
     * 详细描述
     */
    @TableField(value = "content")
    private String content;

    /**
     * 订单id
     */
    @TableField(value = "ordersinfo_id")
    private Integer ordersinfoId;
    @TableField(exist = false)
    private Ordersinfo ordersinfo;


    /**
     * 员工id
     */
    @TableField(value = "workers_id")
    private Integer workersId;
    @TableField(exist = false)
    private Workers workers;

    /**
     * 接单时间
     */
    @TableField(value = "get_time")
    private Timestamp getTime;

    /**
     * 退单时间
     */
    @TableField(value = "chargeback_time")
    private Timestamp chargebackTime;

    @TableLogic
    @TableField(value = "enable")
    private Boolean enable;

    private static final long serialVersionUID = 1L;

    public static final String COL_CHARGEBACK_REASON_ID = "chargeback_reason_id";

    public static final String COL_CONTENT = "content";

    public static final String COL_ORDER_ALL_ID = "ordersinfo_id";

    public static final String COL_WORKER_ID = "workers_id";

    public static final String COL_GET_TIME = "get_time";

    public static final String COL_CHARGEBACK_TIME = "chargeback_time";

    public static final String COL_ENABLE = "enable";
}